package com.nowar.common.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Author: 谢无殇。
 * @Date : 2023-01-28 23:22
 */
public class LoggerFactoryUtil {
    private static final String INFO_LOG = "info";
    private static final String ERROR_LOG = "error";


    public static Logger getLogger(Class clazz) {
        return LoggerFactory.getLogger(clazz);
    }

    public static Logger getLoggerError() {
        return getLogger(ERROR_LOG);
    }

    public static Logger getLoggerInfo() {
        return getLogger(INFO_LOG);
    }

    private static Logger getLogger(String name) {
        return LoggerFactory.getLogger(name);
    }

}
